package com.ruoyi.wms.domain.bo.stock;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.stock.Warehouse;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author ThinkBook
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Warehouse.class, reverseConvertGenerate = false)
public class WarehouseBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 编号
     */
    private String warehouseCode;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseName;
    /**
     * 仓库地址
     */
    private String  warehouseAddress;
    /**
     * 仓库管理员
     */
    private Long adminBy;

    /**
     * 仓库状态(0是关闭，1是开启)
     */
    private Long wareStatus;

    /**
     * 所属门店Id
     */
    private Long storeId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 排序
     */
    private Long orderNum;
}
